//
//  SecondTableViewCell3_1.m
//  真·豆瓣半完全体
//
//  Created by dllo on 15/12/31.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "SecondTableViewCell3_1.h"

@implementation SecondTableViewCell3_1
- (void)dealloc{
    [_imgView release];
    [_ratingLabel release];
    [_IDLabel release];
    [_collectionLabel release];
    [_wishLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}

- (void) creatCell{
    self.imgView = [[UIImageView alloc] init];
    [self.contentView addSubview:_imgView];
    [_imgView release];
    
    self.ratingLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_ratingLabel];
    [_ratingLabel release];
    
    self.IDLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_IDLabel];
    [_IDLabel release];
    
    self.collectionLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_collectionLabel];
    [_collectionLabel release];
    
    self.wishLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_wishLabel];
    [_wishLabel release];
}
- (void)layoutSubviews{
    [super layoutSubviews];
    _imgView.frame = CGRectMake(10, 10, 100, 140);
    
    _ratingLabel.frame = CGRectMake(160, 10, 200, 20);
    
    _IDLabel.frame = CGRectMake(160, 30, 200, 20);
    
    _collectionLabel.frame = CGRectMake(160, 50, 200, 20);
    
    _wishLabel.frame = CGRectMake(160, 70, 200, 20);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
